﻿using Xarmarin.GoldFinger.Views;
using Xarmarin.GoldFinger.Views.Subject;
using Xarmarin.GoldFinger.Views.KzSystem;

namespace Xarmarin.GoldFinger.Engine.Core
{
    /// <summary>
    /// 功能描述    ：SinglePageManager
    /// 创 建 者    ：Zhw
    /// 创建日期    ：2019/1/25 11:35:02
    /// 最后修改者  ：Zhw
    /// 最后修改日期：2019/1/25 11:35:02
    /// </summary>
    internal class SinglePageManager
    {
        private static LoginPage _loginPage;
        private static MainPage s_mainPage;

        public static LoginPage LoginPage
        {
            get
            {
                if (_loginPage == null)
                {
                    _loginPage = new LoginPage();
                }
                return _loginPage;
            }
        }

        public static MainPage MainPage
        {
            get
            {
                if (s_mainPage == null)
                {
                    s_mainPage = new MainPage();
                }
                return s_mainPage;
            }
        }

        private static SubMainPage subMainPage;
        public static SubMainPage SubMainPage
        {
            get
            {
                if (subMainPage == null)
                {
                    subMainPage = new SubMainPage();
                }
                return subMainPage;
            }
        }
        private static SubListPage subListPage;
        public static SubListPage SubListPage
        {
            get
            {
                if (subListPage == null)
                {
                    subListPage = new SubListPage();
                }
                return subListPage;
            }
        }
        private static AboutPage _AboutPage;
        public static AboutPage AboutPage
        {
            get
            {
                if (_AboutPage == null)
                {
                    _AboutPage = new AboutPage();
                }
                return _AboutPage;
            }
        }
        private static ItemsPage _ItemsPage;
        public static ItemsPage ItemsPage
        {
            get
            {
                if (_ItemsPage == null)
                {
                    _ItemsPage = new ItemsPage();
                }
                return _ItemsPage;
            }
        }
        public static CreatedSubjectPage _CreateSubjectPage;
        public static CreatedSubjectPage CreateSubjectPage
        {
            get
            {
                if (_CreateSubjectPage == null)
                {
                    _CreateSubjectPage = new CreatedSubjectPage();
                }
                return _CreateSubjectPage;
            }
        }

        public static Views.KzAbode.IndexPage _AbodeIndexPage;
        public static Views.KzAbode.IndexPage AbodeIndexPage
        {

            get
            {
                if (_AbodeIndexPage == null)
                {
                    _AbodeIndexPage = new Views.KzAbode.IndexPage();
                }
                return _AbodeIndexPage;
            }
        }

        public static Views.KzWorld.IndexPage _WorldIndexPage;
        public static Views.KzWorld.IndexPage WorldIndexPage
        {

            get
            {
                if (_WorldIndexPage == null)
                {
                    _WorldIndexPage = new Views.KzWorld.IndexPage();
                }
                return _WorldIndexPage;
            }
        }
    }
}